﻿<%@ Page Title="" Language="C#" MasterPageFile="~/layout/CommonM.Master" AutoEventWireup="true" CodeBehind="Car.aspx.cs" Inherits="Comm.Web.View.Car" %>
<asp:Content ID="Content1" ContentPlaceHolderID="placeHead" runat="server">
    <script src="../Js/msgBox.js"></script>
    <script src="../Js/cart.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="placeContent" runat="server">
<table id="_table" style="width:100%;">
    <tr><td colspan="2">
  <table id="tbList">
    <tr id="trNav"><th colspan="5">当前正在：【用户<%=UserNow.uLoginName %>】的购物车中</th></tr>
    <tr>
        <th>图片</th>
        <th>图书名称</th>
        <th>单价(元)</th>
        <th style="width:100px;">购买数量</th>
        <th style="width:60px;">删除图书</th>
    </tr>
    <!--循环生成行-->
    <asp:Repeater runat="server" ID="CarList">
        <ItemTemplate>
            <tr class="_trClass">
            <td><a id= "<%#Eval("bookId")%>" strId="strId" "><img 
                        style="cursor: pointer; width:95px; height:121px;border=0" 
                        alt='<%#Eval("BookMODEL.Title") %>' src='<%#Eval("BookMODEL.ISBN","../images/BookCovers/{0}.jpg") %>'></a></td>
            <td><a class="booktitle" id="btn_<%#Eval("bookId")%>" EditId="EditId" style="cursor:pointer;"><%#Eval("BookMODEL.Title")%></a></td>
            <td><span class="price"><%#Eval("BookMODEL.UnitPrice")%></span></td>
            <td>
                    <span class="subNum"></span>
                    <input class="numInput" bid="<%#Eval("bookId")%>" id="<%#Eval("itemId")%>" type="text" value="<%#Eval("count")%>" />
                    <span class="addNum"></span>
            </td>
            <td>
                <a href="javascript:void(0)" onclick="doDel(<%#Eval("bookId")%>,this)">删除</a> 
            </td>
        </tr>
        </ItemTemplate>
    </asp:Repeater>
    <!--循环生成行-->
</table>
   </td>
    </tr>
        <tr>
            <td style="text-align: right" rowspan="2">
                <div class="_tdClass" style="margin-right:30px;"> 
                &nbsp;&nbsp;&nbsp; 商品金额总计：<span id="totleMoney" 
                   >0</span>元
                &nbsp;
               <a href="../View/BookList.aspx"> <img alt="" src="../Images/gobuy.jpg" width="103" height="36" border="0" /> </a><a href="../View/OrderComfirm.aspx"><img src="../images/balance.gif" 
                     border="0" /></a>
                </div>              
            </td>
        </tr>
 </table>
</asp:Content>
